package com.zkthink.jwt.model;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * AuthInfo
 *
 * @author ceres
 * @date 2020年03月31日21:43:31
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "认证信息")
public class AuthInfo {
    @ApiModelProperty(value = "令牌")
    private String token;
    @ApiModelProperty(value = "令牌类型")
    private String tokenType;
    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;
    @ApiModelProperty(value = "用户名")
    private String name;
    @ApiModelProperty(value = "账号名")
    private String account;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "工作描述")
    private String workDescribe;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "过期时间（秒）")
    private long expire;
    @ApiModelProperty(value = "到期时间")
    private Date expiration;
    @ApiModelProperty(value = "注册手机号")
    private String mobile;
    @ApiModelProperty(value = "商户编码")
    private String tenantCode;
    @ApiModelProperty(value = "用户身份 ")
    private Integer userType;
    @ApiModelProperty(value = "角色类型(0:商家、1:理疗车) ")
    private Integer roleType;
//    @ApiModelProperty(value = "当前登录次数")
//    private Integer loginNum;
    @ApiModelProperty(value = "是否需要选择用户对应的角色(true:是/false:否)")
    private Boolean isRoleSet;
    private String sessionKey;
    private String openId;
}


